package com.tx.service;

import com.tx.entity.Comment;
import com.tx.entity.Reply;

import java.util.List;
import java.util.Map;

/**
 * @Author: tcx
 * @description: 评论回复业务层接口
 * @Date: 2020/04/30
 **/
public interface ReplyService {
    /* *
     * @description: 添加回复
     * @author tcx
     * @date 2020/04/30
     * @param reply
     * @return void
     */
    Integer add(Reply reply);
    /* *
     * @description:  根据id查询博客回复
     * @author tcx
     * @date 2020/04/30
     * @param bId
     * @return void
     */
    List<Reply> getReplyByBlog(Integer bId);

    List<Reply> getAll(Map<String,Object> map);
    Integer getTotal(Map<String,Object> map);
    //删除回复
    Integer remove(Integer rId);
    //编辑回复
    Integer edit(Reply reply);
    //获取用户评论回复未读消息
    Integer getCountState(Map<String,Object> map);

    Integer editReplyState(Integer rId);
}
